package com.mt.channel;

import java.util.Properties;
import java.util.concurrent.CountDownLatch;

import com.github.pagehelper.PageHelper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动类
 * 
 * @author wangyuhai
 * @date 2020/04/24
 */
@SpringBootApplication
@EnableEurekaClient
@MapperScan("com.mt.channel.mapper") // 扫描的mapper路径
@EnableTransactionManagement
@EnableFeignClients(basePackages = {"com.mt.channel.feign"})
public class ChannelServiceProviderApplication {

    // 使用jar方式打包的启动方式
    private static CountDownLatch countDownLatch = new CountDownLatch(1);

    public static void main(String[] args) throws InterruptedException {
        SpringApplication.run(ChannelServiceProviderApplication.class, args).registerShutdownHook();
        countDownLatch.await();
    }

}
